package com.jerry.alibaba.transaction.service;

import com.jerry.alibaba.transaction.entity.Account;
import com.jerry.alibaba.transaction.entity.Storage;

import java.math.BigDecimal;
import java.util.List;

public interface AccountService {

    //扣减库存
    void decrease(Long userId, BigDecimal money);

    int create(Account account);

    Account getById(Long id);

    List<Account> getList();

}
